#ifndef BLOGDETAILSPAGE_H
#define BLOGDETAILSPAGE_H

#include <QWidget>
#include <QLabel>
#include <QTextEdit>
#include <QPushButton>
#include <QListWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include <QScrollArea>
#include <QTextBrowser>
#include <QTimer>
#include <QFileDialog>
#include "component/CommentListWidget.h"
#include "component/item/AvatarLabel.h"
#include "component/BlogReviewDialog.h"

class BlogDetailsPage : public QWidget
{
    Q_OBJECT
public:
    explicit BlogDetailsPage(QWidget *parent = nullptr);
    void setTitle(const QString &title);
    void setContent(const QString &htmlContent);
    void setReportReason(const QString &reason);
    void setDownloadButtonVisible(bool isVisible);

private:
    void setupUI();
    void setupUIButtonStyle();
    void connectSignals();

    QLabel *titleLabel;
    QPushButton *reviewButton;
    QTextBrowser *contentBrowser;
    QPushButton *downloadButton;
    QLabel *reportReasonLabel;

private slots:
    void onReviewClicked();
    void onDownloadClicked();

signals:
};

#endif // BLOGDETAILSPAGE_H
